package com.xdf.data_transmitter.utils;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class TestAsyncBTask {
    @Async
    void methodBAsync() throws InterruptedException {
        System.out.println("异步方法内部开始：" + System.currentTimeMillis());
        Thread.sleep(3000);
        System.out.println("异步方法内部结束：" + System.currentTimeMillis());
    }
}
